for i=1,10 do 
	if(i<=5) then
		for j=1,6-i do  
			io.write(' ');
		end
		for k=1,2*i-1 do
			if(k==1) then
				io.write('*')
			elseif(k==2*i-1) then
				io.write('*')
			else
				io.write(' ')
			end
		end
	io.write('\n')
	else 
		for j=1,i-4 do
			io.write(' ')
		end
		for k=1,2*(10-i)-1 do
			if(k==1) then
				io.write('*')
			elseif(k==2*(10-i)-1) then
				io.write('*')
			else 
				io.write(' ')
			end
		end
	io.write('\n')
	end
end
